<template>
  <div class="z-card">
    <!-- 查询项 -->
    <div class="z-card--options_wrap" v-if="$slots.options">
      <div class="z-card--options">
        <slot name="options"></slot>
      </div>
    </div>

    <!-- 内容 -->
    <div class="z-card--wrapper">
      <div class="z-card--content">
        <slot></slot>
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>
defineOptions({
  name: 'z-card'
})

const $slots = useSlots()
</script>

<style lang="scss">
@use './style.scss';
</style>
